package com.ssyx.cart.feign;

import com.ssyx.model.product.SkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * ClassName:productFeignClient
 * Description:
 *
 * @Author kay
 * @Create 2024/5/19 18:39
 * @Version 1.0
 */
@FeignClient(value = "service-product")
public interface ProductFeignClient {

    //根据商品可将可将skuId得到商品skuInfo信息
    @GetMapping("/api/product/inner/getSkuInfo/{skuId}")
    SkuInfo getSkuInfo(@PathVariable("skuId") Long skuId);
}
